<?php
/**
* @version 1.0.0
* @package RSSearch! 1.0.0
* @copyright (C) 2011 www.rsjoomla.com
* @license GPL, http://www.gnu.org/licenses/gpl-2.0.html
*/
defined('_JEXEC') or die('Restricted access');

class modRSSearchHelper
{
	function isJ16(){
		$jversion = new JVersion();
		$current_version =  $jversion->getShortVersion();
		return (version_compare('1.6.0', $current_version) <= 0);
	}
	
	function CheckHeadScript($file)
	{
		$doc =& JFactory::getDocument();
		$head = $doc->getHeadData();

		$return = false;
		
		if(!empty($head['scripts']))
		{
			foreach($head['scripts'] as $path => $type)
			{
				if(strpos($path, $file) !== false)
				{
					$return = true;
					break;
				}
			}

			return $return;
		}
	}
	
}
?>